package com.maven.booksystem.model;


import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    // 这个 类 是 用来存 返回的 数据
    private int total;
    private List<T> records;
    PageInfo pageInfo;

    public PageResult(PageInfo pageInfo, List<T> records, int total) {
        this.pageInfo = pageInfo;
        this.records = records;
        this.total = total;
    }
}
